package com.bird.pro.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.bird.pro.mapper.BirdErrorMapper;
import com.bird.pro.pojo.BirdError;
import com.bird.pro.pojo.BirdErrorExample;
import com.bird.pro.service.IErrorService;

@Service
@Transactional
public class ErrorServiceImpl implements IErrorService {

	@Autowired
	private BirdErrorMapper errorMapper;
	@Override
	public List<BirdError> queryErrors() {
		BirdErrorExample example = new BirdErrorExample();
		return errorMapper.selectByExample(example);
	}

	@Override
	public List<BirdError> queryErrors(String userName) {
		return null;
	}

	@Override
	public int saveError(BirdError error) {
		return errorMapper.insertSelective(error);
	}

}
